export const fetchData = fn => {
	return fetch('https://facebook.github.io/react-native/movies.json')
		.then(response => {
			fn(response.json());
		})
		.then(responseJson => {
			console.log(responseJson);
			return responseJson.movies;
		})
		.catch(error => {
			console.log(error);
		});
};

function fn(response) {
	console.log(respnse);
}
